package com.lagou.module2.task2;

public class CallPlan implements CallService{
    //构造方法
    public CallPlan(int min, int mes, double call) {
        setMessage_num(mes);
        setMinutes(min);
        setMonth_fee(call);
    }
    public CallPlan(){}

    //成员变量
    private  static int minutes;
    private  static int message_num;
    private static double call_fee;

    //成员方法
    public void showCall(){
        System.out.println("当前套餐通话时常: "+minutes+ "\n" +"当前套餐可发短信: "+message_num+"\n" +"当前套餐月费: "+call_fee+"\n" );
    }
    //get，set方法
    public static int getMinutes() {
        return minutes;
    }

    public void setMinutes(int minutes) {
         this.minutes = minutes;
    }

    public static int getMessage_num() {
        return message_num;
    }

    public void setMessage_num(int message_num) {
        this.message_num = message_num;
    }

    public static double getMonth_fee() {
        return call_fee;
    }

    public void setMonth_fee(double month_fee) {
        this.call_fee = month_fee;
    }
    //重写
    @Override
    public void callService(int min, PhoneCard pc) {
        System.out.println("");
    }
}
